﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using blackhouse.BlackApart.Business.Opinions;
using blackhouse.BlackApart.Web.Navigation;

namespace blackhouse.Aparts.Web.Navigation {
    public class CmsNavigationProvider : NavigationProvider {

        protected override UrlVisitor GetUrlVisitor(IOpinion opinion) {
            CmsUrlOpinionVisitor visitor = new CmsUrlOpinionVisitor();
            opinion.Visit(visitor);
            return visitor;
        }

        protected override UrlVisitor GetUrlVisitor(BlackApart.Web.SearchState search) {
            CmsUrlSearchStateVisitor v = new CmsUrlSearchStateVisitor();
            search.Visit(v);
            return v;
        }

        protected override UrlVisitor GetUrlVisitor(ReservationPage page) {
            CmsUrlReservationPageVisitor v = new CmsUrlReservationPageVisitor();
            page.Visit(v);
            return v;
        }

        public override ReservationPage GetReservationPageFromRequest() {
            return null;
        }

    }
}